package com.top.entiy;


import com.top.utils.FormatUtil;
import com.top.utils.SoutUtil;

import java.math.BigDecimal;
import java.util.Date;

public class Food {
    /**
     * id菜名
     */
    private Integer id;
    /**
     * name
     */
    private String name;
    /**
     * price
     */
    private BigDecimal price;
    private String categoryName;



    /**
     * info
     */
    private String info;
    /**
     * category
     */
    private int category;
    /**
     * hot
     */
    private Integer hot;
    /**
     * hot
     */
    private String hotStr;
    /**
     * enable
     */
    private Integer enable;
    /**
     * enable
     */
    private String enableStr;
    /**
     * delete
     */
    private Integer delete;
    /**
     * create_time
     */
    private Date createTime;
    /**
     * update_time
     */
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public String getEnableStr() {
        return enableStr;
    }

    public void setEnableStr(String enableStr) {
        this.enableStr = enableStr;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public int getCategory() {
        return category;
    }

    public String getHotStr() {
        return hotStr;
    }

    public void setHotStr(String hotStr) {
        this.hotStr = hotStr;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public Integer getHot() {
        return hot;
    }

    public void setHot(Integer hot) {
        this.hot = hot;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Integer getDelete() {
        return delete;
    }

    public void setDelete(Integer delete) {
        this.delete = delete;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }
    public String getAddColumn(){
        return SoutUtil.printAddColumn("菜品名称","价格","描述","热销[1|0]");
    }
    public String getColumn(){
        return FormatUtil.format(14,"ID","菜品名称","价格","描述","菜品类别","热销","上下架","创建时间","更新时间");
    }

    @Override
    public String toString() {
        return FormatUtil.format(15,id,name,price,info,categoryName,hotStr,enableStr,createTime,updateTime);
    }
    public String toMenuString() {
        return FormatUtil.format(15,id,name,price,info,categoryName,hotStr);
    }

    public String getEditColumn() {
        return SoutUtil.printAddColumn("ID","菜品名称","价格","描述","热销");
    }
}

